const esbuild = require('esbuild');

const defaultConfig = {
  entryPoints: ['src/index.ts'],
  bundle: true
};

esbuild.build({
  ...defaultConfig,
  minify: false,
  format: 'esm',
  outfile: 'dist/index.min.mjs',
})

esbuild.build({
  ...defaultConfig,
  minify: false,
  format: 'cjs',
  outfile: 'dist/index.min.js',
})